var result_24 = JSON.parse('{"CODE":0, "ACTION":"","LEVEL":"", "MSG":"","DATA":"","RULE":"24"}');
var isWasPrice = false;

if (!isNull(JSON_PRICE_LOCK_LIST) ) {
  var list = JSON.parse(JSON_PRICE_LOCK_LIST);
  var lockEffDate = addDate(new Date(list[0].EFFECTIVE_DATE), 15);
  var lockExpDate = new Date(list[0].EXPIRATION_DATE);
  if (betweenDay(lockEffDate, EFF_DATE) > 0
    && betweenDay(EFF_DATE, lockExpDate) > 0
    && list[0].LOCK_LEVEL == 'Y') {
    isWasPrice = true;
  }
}
if (isWasPrice && !isNull(NEW_RETAIL)) {
  result_24.CODE = 2;
  result_24.ACTION = "CHECKING_REPORT";
  result_24.MSG = "WasPrice商品生效期间禁止变价";
}
JSON.stringify(result_24);
